<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>平均耗时测试</title>
<script type="text/javascript" src="script/jquery.js"></script>
<script type="text/javascript" src="script/FusionCharts.js"></script>
</head>

<body>
	<div id="chartContainer"></div>
</body>

<script type="text/javascript">
	var myChart = new FusionCharts("Charts/Bar2D.swf", "myChartId", "600",
			"400");
	FusionCharts.setCurrentRenderer("javascript");
	myChart.setJSONData(${json});
	myChart.render("chartContainer");
/*
	 var y = 0;
	var x = {
		"chart" : {
			"manageresize" : "1",
			"chartbottommargin" : "5",
			"lowerlimit" : "0",
			"upperlimit" : "100",
			"numbersuffix" : "%",
			"showtickmarks" : "1",
			"tickvaluedistance" : "0",
			"majortmnumber" : "5",
			"majortmheight" : "4",
			"minortmnumber" : "0",
			"showtickvalues" : "1",
			"decmials" : "0",
			"ledgap" : "2",
			"ledsize" : "2",
			"ledboxbgcolor" : "333333",
			"ledbordercolor" : "666666",
			"borderthickness" : "2",
			"chartrightmargin" : "20"
		},
		"colorrange" : {
			"color" : [ {
				"minvalue" : "0",
				"maxvalue" : "30",
				"code" : "00FF00"
			}, {
				"minvalue" : "30",
				"maxvalue" : "50",
				"code" : "FFFF00"
			}, {
				"minvalue" : "50",
				"maxvalue" : "100",
				"code" : "FF0000"
			} ]
		},
		"value" : y
	};
	$(function() {
		timer();
	});

	function timer() {
		$.get("momery.jspx", function(data) {
			update("myChartId", data.momery);
		});
	
		var t = setTimeout("timer()", 5000);
	}
	var myChart = new FusionCharts("Charts/HLED.swf", "myChartId", "600", "100",0,0);
	FusionCharts.setCurrentRenderer("javascript");
	myChart.setJSONData(x);
	myChart.render("chartContainer");

	function update(dom, value) {
		y = value;
		myChart.setJSONData({
			"chart" : {
				"manageresize" : "1",
				"chartbottommargin" : "5",
				"lowerlimit" : "0",
				"upperlimit" : "100",
				"numbersuffix" : "%",
				"showtickmarks" : "1",
				"tickvaluedistance" : "0",
				"majortmnumber" : "5",
				"majortmheight" : "4",
				"minortmnumber" : "0",
				"showtickvalues" : "1",
				"decmials" : "0",
				"ledgap" : "2",
				"ledsize" : "2",
				"ledboxbgcolor" : "333333",
				"ledbordercolor" : "666666",
				"borderthickness" : "2",
				"chartrightmargin" : "20"
			},
			"colorrange" : {
				"color" : [ {
					"minvalue" : "0",
					"maxvalue" : "30",
					"code" : "00FF00"
				}, {
					"minvalue" : "30",
					"maxvalue" : "50",
					"code" : "FFFF00"
				}, {
					"minvalue" : "50",
					"maxvalue" : "100",
					"code" : "FF0000"
				} ]
			},
			"value" : y
		});
	} */
</script>
</html>
